home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-0195.lzh / AMOSLIST / text0182.txt < prev    next >
Encoding:
Text File  |  1995-02-01  |  677 b   |  28 lines

  1. > > PS  I don't think you can use C with AMOS.
  2.  
  3. I have done this, but it is a bit of a hack. I wrote a small C routine 
  4. which defines input and output paramters in one variable block, and 
  5. initialise each with a destinctive value, i.e.
  6.  
  7. int In1 = 1111;
  8. int In2 = 2222;
  9. int Out1 = 3333;
  10. int Local;
  11.  
  12. void main()
  13.  
  14. {
  15. ...
  16. }
  17.  
  18. Then I compiled it with a compiler which compiles to assembler, I used 
  19. NorthC.
  20.  
  21. >From this assembler file I could see the input variables and change the 
  22. assembler to make these act as parameters correctly. Finally the 
  23. assembler was compiled and loaded into an Amos bank. This is neither easy 
  24. or neat but id does work!
  25.  
  26. Richard May. (rpm@sys.uea.ac.uk)
  27.  
  28.